package cn.flying.cloud.oauth.server.configuration.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Github 配置信息
 *
 * @author: admin
 * @date: 2023年04月15日 21:05
 * @version: 1.0
 */
@Component
@ConfigurationProperties(prefix = "oauth.qq")
public class QQAuthProperties {

    private String clientId;
    private String clientSecret;
    private String scope;
    /**
     * 授权码回调地址  这里的uri必须和Github上配置的回调一致或者是其子路径
     */
    private String redirectUri;
    /**
     * 发起授权申请的地址
     */
    private String authorizeUri;
    /**
     * 获取token的地址
     */
    private String tokenUri;
    /**
     * 获取用户信息的地址
     */
    private String userInfoUri;
    /**
     * 获取OpenId的地址（用户身份的标识）
     */
    private String openIdUri;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

    public String getAuthorizeUri() {
        return authorizeUri;
    }

    public void setAuthorizeUri(String authorizeUri) {
        this.authorizeUri = authorizeUri;
    }

    public String getTokenUri() {
        return tokenUri;
    }

    public void setTokenUri(String tokenUri) {
        this.tokenUri = tokenUri;
    }

    public String getUserInfoUri() {
        return userInfoUri;
    }

    public void setUserInfoUri(String userInfoUri) {
        this.userInfoUri = userInfoUri;
    }

    public String getOpenIdUri() {
        return openIdUri;
    }

    public void setOpenIdUri(String openIdUri) {
        this.openIdUri = openIdUri;
    }
}
